public class Stub
{
    private String name;
    private double inner;
    private String empty;

    public Stub()
    {
        name  = "Fred";
        inner = 5.0;
        empty = null;
    }

    public String getName() { return name; }
    public void setName(String newName) { name = newName; }
    public double getNumber() { return inner; }
    public void setNumber(double value) { inner = value; }

    public String changeName(String newName)
        { setName(newName); return getName(); }
    public String getNameWithoutSetter() { return name; }

    public void forceNPE() { empty = empty.substring(1); }
}
